﻿using System;
using System.Configuration;

namespace Web.forms
{
    public partial class HojaRuta : Pagina
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnVerReporte_Click(object sender, EventArgs e)
        {
            Redirect(
                rdbHojaRuta.SelectedValue == "1"
                    ? ConfigurationManager.AppSettings["rptHojaRutaGeneral"].Replace("[ServidorReportingServices]",
                                                                                     ServidorReportingServices).Replace
                          ("[CarpetaReportingServices]", CarpetaReportingServices).Replace("[Periodo]",
                                                                                            PeriodoActual.Llave)
                    : ConfigurationManager.AppSettings["rptHojaRutaSelectivo"].Replace("[ServidorReportingServices]",
                                                                                       ServidorReportingServices).
                          Replace("[CarpetaReportingServices]", CarpetaReportingServices).Replace("[Periodo]",
                                                                                                   PeriodoActual.Llave),
                "_blank", "");
        }
    }
}